import java.util.HashSet;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test5 {
    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>();
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] string = new String[n];
        for(int i = 0; i < n; i++) {
            string[i] = sc.nextLine();
            set.add(string[i]);
        }
        for(int i = 0; i < n; i++) {
            if(set.contains(string[i])) {
                System.out.println(string[i]);
                set.remove(string[i]);
            }
        }
    }
}
